home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / TemplateMF / MkOs < prev    next >
Text File  |  1995-07-08  |  1KB  |  52 lines

  1.  
  2.  
  3. # Template makefile to make all .o files
  4. # for a DeskLib sublibrary. Compilation 
  5. # is for static linking inside a DLL.
  6.  
  7. # The macro $(ObjectFiles) should be set at the 
  8. # start of this file, to be a space-separated
  9. # list of object files.
  10. # This is done by 'Makatic'.
  11.  
  12. # The macro $(LibName) should also be set at the 
  13. # start of this file, to be the name of the 
  14. # DeskLib sublibrary.
  15.  
  16. # Compiler flags, These can be anything. 
  17. # All essential flags (eg CC -zM
  18. # are included in the macro $(CC).
  19. #
  20. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  21. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  22.  
  23. CC        =    cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
  24. ASM        =    ObjAsm $(ASMFlags)
  25.  
  26.  
  27. # -------------------------------------------------------
  28. # Everything below here should probably not be changed...
  29. # -------------------------------------------------------
  30.  
  31. # Here's what we want to make...
  32. #
  33. All:    $(ObjectFiles)
  34.  
  35.  
  36. # Rule for compiling C source code for a Straylight dynamically-linked library.
  37.  
  38. VPATH = @.^
  39.  
  40. .SUFFIXES:    .o .c .s
  41.  
  42. .c.o:
  43.     $(CC) -o $@ $<
  44.  
  45. .s.o:
  46.     $(ASM) $(ASMFlags) -from $< -to $@
  47.  
  48.  
  49.  
  50. # Dynamic dependencies:
  51.